module.exports = {
  title: 'web-gl-learn',
  description: 'webGL 学习',
  base: process.argv[2] === 'dev' ? '/' : '/web-gl-learn/', // 这是部署到github相关的配置
  markdown: {
    lineNumbers: false // 代码块显示行号
  },
  themeConfig: {
    search: true, // 是否开启搜索
    searchMaxSuggestions: 10, // 搜索最大条数
    // 侧边栏
    sidebar: {
      '/base/': [
        {
          title: '基础',
          collapsable: false,
          children: [
            '/base/',
            '/base/quick-start'
          ]
        }
      ],
      '/components/': [
        {
          title: '组件',
          collapsable: false,
          children: ['/components/']
        },
        {
          title: '全局组件',
          collapsable: false,
          children: [
            '/components/svg-icon',
            '/components/com-table',
            '/components/com-form',
            '/components/com-search',
            '/components/com-dialog',
            '/components/com-detail'
          ]
        }
      ]
    },
    // 导航栏
    nav: [
      {
        text: '首页',
        link: '/'
      },
      {
        text: '指南',
        link: '/base/'
      },
      {
        text: '功能组件',
        link: '/components/'
      },
      {
        text: '预览',
        link: 'https://tech.suitbim.com/suit-vue-admin'
      },
      {
        text: 'Git',
        link: 'http://jira.suitbim.com:37990/scm/qdkj/project_page_3.git'
      }
    ]
  },
  plugins: [
    [
      'vuepress-plugin-typescript',
      {
        tsLoaderOptions: {
          // ts-loader 的所有配置项
        }
      }
    ]
  ]
}
